﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace skhukb.Util
{
    public static class MyExtensions
    {
        public static string ToYMD(this DateTime d) {
            return d.ToString("yyyy-MM-dd");
        }

        public static string ToYMDHM(this DateTime d)
        {
            return d.ToString("yyyy-MM-dd HH:mm");
        }

        public static string ToYMDHMS(this DateTime d)
        {
            return d.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}